load_configuration()
{
  # Export SVN path to tmp directory
  mung=`svn export --force $repo_root/frt $tmp_dir/frt`
  if [[ $1 ]]
  then
    echo "Exporting project to tmp directory."
    svn export --force $repo_root/$1 $export_dir
    echo
    if [ ! -d $export_dir ]
    then
      echo "The svn path \"$repo_root/$1\" does not exist."
      exit 2
    fi
  fi

  # Check file exists
  if [ ! -f $tmp_dir/frt ]
  then
    echo "The exported SVN path does not contain a frt configuration file."
    exit 2
  fi

  source $tmp_dir/frt
  load_global_configuration
}

export_prepare_script()
{
  prepare_script=$tmp_dir/prepare.frt
  mung=`svn export $verion_root/prepare.frt $prepare_script`
}

prepare_usage()
{
  echo "USAGE: $0 prepare [svn_root] [svn_path]"
  exit 1
}

